import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/examquestion/` + url, ...arg)

/**
 * 考试试题gApi接口管理器
 *
 * @author lrw
 * @date  2025/10/04 09:25
 **/
export default {
	// 获取考试试题g分页
	exmExamQuestionPage(data) {
		return request('page', data, 'get')
	},
	// 提交考试试题g表单 edit为true时为编辑，默认为新增
	exmExamQuestionSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除考试试题g
	exmExamQuestionDelete(data) {
		return request('delete', data)
	},
	// 获取考试试题g详情
	exmExamQuestionDetail(data) {
		return request('detail', data, 'get')
	}
}
